package com.jt.controller;

import com.jt.pojo.User;
import com.jt.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

@Controller
public class UserController {
    @Autowired
    private UserService userService;
   public void AddUser(){
       User user=new User();
       user.setId(111);
       user.setName("小波");
       user.setSex("女");
       userService.AddUser(user);
   }
}
